package fr.utbm.to52.android_bibtex.model.entry;

import java.util.EventObject;

public class EntryListEvent extends EventObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9093806242816997621L;

	private final EntryEvent entryChangeEvent;

	public EntryListEvent(Entry source) {
		super(source);
		this.entryChangeEvent = null;
	}

	public EntryListEvent(EntryEvent entryChangeEvent) {
		super(entryChangeEvent.getSource());
		this.entryChangeEvent = entryChangeEvent;
	}

	@Override
	public Entry getSource() {
		return (Entry) super.getSource();
	}

	public EntryEvent getEntryChangeEvent() {
		return this.entryChangeEvent;
	}

}
